package com.woniuxy.woniuticket.financemodule.util;


import org.springframework.stereotype.Component;

import java.io.IOException;
import java.util.Properties;

@Component
public class getpaycfg {
	
	public static String app_id;
	public static String merchant_private_key;
	public static String alipay_public_key;
	public static String notify_url;
	public static String return_url;
	public static String sign_type;
	public static String charset;
	public static String gatewayUrl;
	public static String log_path;
	
	static {
		Properties p = new Properties();
		try {
			p.load(getpaycfg.class.getClassLoader().getResourceAsStream("paycfg.properties"));
			app_id = p.getProperty("app_id");
			merchant_private_key = p.getProperty("merchant_private_key");
			alipay_public_key = p.getProperty("alipay_public_key");
			notify_url = p.getProperty("notify_url");
			return_url = p.getProperty("return_url");
			sign_type = p.getProperty("sign_type");
			charset = p.getProperty("charset");
			gatewayUrl = p.getProperty("gatewayUrl");
			log_path = p.getProperty("log_path");
			
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
	
	
	
	
}
